<!DOCTYPE html>
<html>
<head>
    <title>数据字典列表页</title>
    <@h.head />
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        @media ( max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
</head>
<body>
<form class="form-inline definewidth m20" action="${path}/dict/list" method="get" id="listForm">
    用户名称： <input type="text" name="targetColumn" id="username"
                 class="abc input-default" placeholder="字段" value="${(RequestParameters['targetColumn'])!''}">&nbsp;&nbsp;
    <button type="submit" class="btn btn-primary">查询</button>
    &nbsp;&nbsp;
    <@shiro.hasPermission name="sys:dict:add">
    <a class="btn btn-success" href="${path}/dict/add">新增</a>
    </@shiro.hasPermission>
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th>字段</th>
        <th>显示内容</th>
        <th>值</th>
        <th>描述</th>
        <th>备注</th>
        <th>是否启用</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#list list as u>
        <tr class="">
            <td>${(u.targetColumn)!""}</td>
            <td>${(u.label)!""}</td>
            <td>${(u.value)!""}</td>
            <td>${(u.descrption)!""}</td>
            <td>${(u.remark)!""}</td>
            <td>${(u.disabled==0)?string("启用","禁用")}</td>
            <td>
                <@shiro.hasPermission name="sys:dict:update">
                <a class="edit" href="${path}/dict/add?id=${(u.id)!''}">修改</a>
            </@shiro.hasPermission>
            </td>
        </tr>
    </#list>
    </tbody>
</table>
<@h.page /> <@h.foot />
</body>
</html>
